﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace NetCoreBBS.Entities
{
    public class Customer : BaseEntity
    {
        [Display(Name = "手机号")]
        [Required]
        [RegularExpression("^(13[0-9]|145|14[78]|15[0-3]|15[5-9]|17[6-8]|18[0-9])[0-9]{8}$",ErrorMessage ="请输入正确的手机号")]
        public string PhoneNumber { get; set; }

        public DateTime ArrivedTime { get; set; }
    }
}
